<%@ page language="java" isELIgnored="false"
	contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!doctype html>
<html lang="en">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>人才测评网站</title>

<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="<%=path %>/styles/bootstrap.css" rel="stylesheet">
<link href="<%=path %>/other/css/styleindex.css" rel="stylesheet" />
<link href="<%=path %>/other/css/layout.css" rel="stylesheet" />
<script src="<%=path %>/script/jquery-1.11.2.min.js"></script>
<script src="<%=path %>/other/js/bootstrap.min.js"></script>
<link href="<%=path%>/other/css/loginStyle.css" rel="stylesheet"
	type="text/css" />
<script type="text/javascript">
	//浏览器判断是否低过IE9
	var navigatorType = navigator.appName;
	if (navigatorType == "Microsoft Internet Explorer") {
		var navigatorVersion = navigator.appVersion.split(";")[1].replace(
				/[ ]/g, "");
		if (navigatorVersion == "MSIE6.0" || navigatorVersion == "MSIE7.0"
				|| navigatorVersion == "MSIE8.0") {
			location.href = "/obsolete/obsolete";
		}
	}
</script>
</head>

<body data-spy="scroll" data-target=".navbar-scroll">
	<div id="layout">
		<div class="header ">
			<div class="container">
				<div class="logo">
					<a href='/' title="人才测评系统">人才测评系统
				</div>
				<div class="more-option">
					<a href='<%=path %>/UserController/userLogout.action' class="user_Close ajax-post"><img
						src="<%=path%>/images/login/close.jpg">退出</a>
				</div>
			</div>
		</div>


		<div class="container">

			<!-- 侧边导航栏 -->
			<div id="slide-menu">
				<div class="userInfo">
					<div class="head_icon">
						<img alt="头像"
										<c:if test="${User.userImage==null}">
										src="<%=path%>/images/login/empty_head.jpg"
										</c:if>
										<c:if test="${User.userImage!=null }">
										src="<%=path%>/${sessionScope.User.userImage }"
										</c:if> 
										 class="img-circle"
										width="100%" height="100%"
					  />
					</div>
					<p>
						${sessionScope.User.userName }<br>${sessionScope.User.userPhone }
					</p>
				</div>
				<div class="list_box">
					<ul class="list-unstyled">
						<li><a href="index.jsp"><i
								class="glyphicon glyphicon-home"></i>人才测评</a></li>
						<li><a href='testDetail.jsp'><i
								class="glyphicon glyphicon-list-alt"></i>测评须知</a></li>
						<li><a href='reportList.jsp?userId=${sessionScope.User.userId }'><i
								class="glyphicon glyphicon-list-alt"></i>报告查询</a></li>
				       <li><a href='../MenuController/postListfront.action'><i
								class="glyphicon glyphicon-cog"></i>交流中心</a></li>
						<li><a href='../UserController/personInformation.action'><i
								class="glyphicon glyphicon-cog"></i>个人信息管理</a></li>
					</ul>
				</div>

			</div>

			<!-- 主体内容区 -->
			<div id="layoutmain">
				
				
				<table width="700" border="0" cellpadding="0" cellspacing="0">
					<form name="" action="<%=path %>/UserController/update01.action" method="post"
					enctype="multipart/form-data"	onsubmit="return checkform();">
			            
						<input type="hidden" name="userId" value="${userInfo.userId }" />
						<tr>
							<td width="110" class="reg">用户名：</td>
							<td width="316"><input type="text" id="userName"
								name="userName" class="reg_input" style="width: 300px;" disabled="true" value="${userInfo.userName}"
								onBlur="checkid(this.value);" /></td>
							<td width="274"><span class="red">*</span> <span
								id="UserName_Txt">建议使用常用邮箱作为用户名</span></td>
						</tr>
						
		
						<tr>
							<td class="reg">姓名：</td>
							<td><input type="text" id="userRealname" name="userRealname"
								class="reg_input" style="width: 300px;" value="${userInfo.userRealname }"/></td>
							<td><span class="red">*</span></td>
						</tr>
						<tr>
							<td class="reg">电子邮箱：</td>
							<td><input type="text" id="userEmail" name="userEmail"
								class="reg_input" style="width: 300px;" value="${userInfo.userEmail}"/></td>
							<td><span class="red">*</span></td>
						</tr>
					<tr>
						<td class="reg">手 机：</td>
						<td><input type="text" id="userPhone" name="userPhone"
							class="reg_input" style="width: 300px;" value="${userInfo.userPhone}"/></td>
						<td><span class="red">*</span></td>
					</tr>
					<tr>
						<td class="reg">联系地址：</td>
						<td><input type="text" id="userAddress" name="userAddress"
							class="reg_input" style="width: 300px;" value="${userInfo.userNativeplace}"/></td>
						<td><span class="red">*</span></td>
					</tr>
                    <input id="userNativeplace" name="userNativeplace" type="hidden"></input>
				
					<tr>

						<td class="reg">学 历：</td>
						<td><input type="text" id="userEducation"
							name="userEducation"  class="reg_input"
							style="width: 300px;" value="${userInfo.userEducation}"></input><span class="red">*</span></td>
					</tr>
					<tr>
						<td class="reg">职业：</td>
						<td><input type="text" id="userPosition" name="userPosition"
							class="reg_input" style="width: 300px;" value="${userInfo.userPosition}"/></td>
						<td><span class="red">*</span></td>
					</tr>
					<td class="reg">毕业院系：</td>
					<td><input type="text" id="userSchool" name="userSchool"
						class="reg_input" style="width: 300px;" placeholder="院系"  value="${userInfo.userSchool}"/></td>
					<td><input type="text" id="userDepartment"
						name="userDepartment" class="reg_input" style="width: 300px;"
						placeholder="专业"  value="${userInfo.userDepartment}"/></td>
					<td><span class="red">*</span></td>
					</tr>
					<tr>
                    <tr>
						<td class="reg">图片：</td>
						<td><input type="file" id="userImage" 
							name="photofile"
							class="reg_input" style="width: 300px;" />
						</td>
						<td><span class="red">*</span></td>
					</tr>
						<td colspan="2" align="center"><input type="submit" value="保存"
							 /></td>
						<td></td>
					</tr>
			
					</form>
				</table>
			
			</div>
			<div class="clearfix"></div>
			<!-- 广告 -->
		</div>
		<div id="layout-block"></div>
	</div>
	<div id="footer">
		<div class="modal fade" id="BModal" tabindex="-1" role="dialog"
			aria-labelledby="myModalLabel" aria-hidden="true"></div>
		<div class="modal fade" id="MModal" tabindex="-1" role="dialog"
			aria-labelledby="myModalLabel" aria-hidden="true"></div>
		<div class="fakeloader"></div>

		<div class="footer">

			<div class="container">
				
			</div>

		</div>

		<script>
			//首页列表自适应
			var layout_side = $("#slide-menu").outerHeight();
			var layout_main = $("#layoutmain").outerHeight();
			var domH = $(window).outerHeight();

			if (layout_side < layout_main) {
				$("#slide-menu").css("min-height", layout_main)
			} else {
				$("#layoutmain").css("min-height", layout_side)
			}
			
		</script>
		<script type="text/javascript" src="<%=path %>/script/front/index.js"></script>
	</div>
</body>

</html>